package cn.hp.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController	//spring4.0注解 相当于@Controller + @ResponseBody

public class Demo {

	@RequestMapping("/helloWorld")
	public String helloWorld() {
		return "hello SpringBoot";
	}
	

}
